home *** CD-ROM | disk | FTP | other *** search
- #define CHAR 0
- #define INT 1
- #define LONG 2
- #define CHARSTR 3
- #define VOIDPNTR 3
-
- #define ASCEND 0
- #define DESCEND 1
-
- union _DATA_ {
- char Char; /* I know, I Know, it's redundant, but it is pretty */
- int Int;
- long Long;
- char *CPntr;
- void *VPntr;
- };
-
- typedef union _DATA_ Generic;
- typedef struct _NODE_ Node;
-
- struct _NODE_ {
- Node *Next, *Prev;
- int DataType;
- union _DATA_ Data;
- } Node;
-
- typedef Node * List;
-
- Node *MakeNode(void);
- Node *FindNode(Node *P, void *Data);
- Node *MakeList(int DataType);
- void ListNodes(Node *P, int Dir);
- int AddNode(Node *List, void *Data);
- void DeleteNode(Node *P);
- int IntCmp(Node *N, int *D2);
- int LongCmp(Node *N, long *D2);
- int StringCmp(Node *N, char *Str);